<!DOCTYPE html>
<html>
<head>
    <title>Cross-Browser Event Object Example</title>
    <script type="text/javascript" src="EventUtil.js"></script>
</head>
<body>
    <input type="button" value="Click Me" id="myBtn" />
    <script type="text/javascript">
        var btn = document.getElementById("myBtn");
        btn.onclick = function(event){
            alert("Clicked");
            event = EventUtil.getEvent(event);
            EventUtil.stopPropagation(event);
        };
        
        document.body.onclick = function(event){
            alert("Body clicked");
        };
    </script>
</body>
</html>
